import unittest

def funcion(x):
	return x+1

def suma(a,b):
	if type(a)!=str and type(b)!=str:
		return a+b
	elif type(a)==str or type(b)==str:
		return ("Error")
		
def multiplicacion(a,b):

	return a*b

def resta(a,b):
	if type(a)!=str and type(b)!=str:
		return a-b
	elif type(a)==str or type(b)==str:
		return ("Error")


def division(a,b):
	if b==0:
		return ("No se puede dividir por cero")
	elif type(a)!=str and type(b)!=str:
		return a/b
	elif type(a)==str or type(b)==str:
		return ("Error")

		
class testfun(unittest.TestCase):
	def test(self):
		self.assertEqual(funcion(3),4)
		
class testsuma(unittest.TestCase):
	def test(self):
		self.assertEqual(suma(3,4),7)
		self.assertEqual(suma(3,"a"),"Error")
		self.assertEqual(suma("j",4),"Error")

class testmulti(unittest.TestCase):
	def test(self):
		self.assertEqual(multiplicacion(3,4),12)
		self.assertEqual(multiplicacion("hola",2),"holahola")
		self.assertEqual(multiplicacion(3,0),0)

class testresta(unittest.TestCase):
	def test(self):
		self.assertEqual(resta(4,3),1)
		self.assertEqual(resta(4,"j"),"Error")
		
class testdiv(unittest.TestCase):
	def test(self):
		self.assertEqual(division(8,4),2)
		self.assertEqual(division(3,0),"No se puede dividir por cero")
		self.assertEqual(division(3,"a"),"Error")
		
if __name__ == '__main__':
	unittest.main()

print("hola"*3)
